#ifndef __HDR_H__
#define __HDR_H__

#define R_OK  1
#define R_ERR 0

#define _DBG_
#ifdef _DBG_
#define PT printf
#else
#define PT /\
/
#endif

#ifdef WIN32
#define sock_t SOCKET
#define P_ERR {int r=GetLastError();PT("last error is %d\n", r);}
#else
#define sock_t int

#endif

typedef struct position_tag
{
	char * p;
	char bck;
}position;

#define REG_FUNCTION(x) 

//////////////////////////////////////////////////////////////////////////

#define HTTP_PORT 8000

//////////////////////////////////////////////////////////////////////////


extern int init_server();
extern int http_accept();

#endif